package com.grammer.thread;

public class EvenGenerator extends IntGenerator {
    private int currentEvenValue = 0 ;
    private volatile double d ;
    @Override
    public int next() {
        ++currentEvenValue;
        for(int i=1;i<2;i++){
            d += Math.PI * Math.E / (double)i;
        }

        ++currentEvenValue;
        return currentEvenValue;
    }

    public static void main(String[] args){
        EvenChecker.test(new EvenGenerator());
    }
}
